import fetch from 'utils/fetch';
import store from '../store';
export function page(query) {
  return fetch({
    url: '/api/viewUser/page',
    method: 'get',
    params: query
  });
}

export function add(data) {
  data.companyId = store.getters.companyId
  return fetch({
    url: '/api/viewUser/add',
    method: 'post',
    data
  })
}

export function edit(data) {
  return fetch({
    url: '/api/viewUser/edit',
    method: 'post',
    data
  })
}